package com.cyy.api.controller;


import com.cyy.common.domain.Response;
import com.cyy.common.service.WebsiteConfigService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Tag(name = "网站信息-API", description = "网站信息-API")
@RestController
@RequestMapping("/v1/website")
@RequiredArgsConstructor
public class ApiWebsiteController {

    private final WebsiteConfigService websiteConfigService;

    @Operation(summary = "网站基础信息查询")
    @GetMapping("/basicInfo")
    public Response basicInfo() {
        return Response.success().data(websiteConfigService.queryBasicInfo());
    }
}
